﻿
@{
    ViewBag.Title = "UserManage";
    Layout = "~/Views/Shared/_ryIndex.cshtml";
}


@section styles
{
    @Styles.Render("~/bundles/BootstrapTableCss")
    <link href="~/Content/static/ruoyi/css/RuoYi.css" rel="stylesheet" />
    <link href="~/Content/static/ajax/libs/jquery-layout/jquery.layout-latest.css" rel="stylesheet" />
    <link href="~/Content/static/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css" rel="stylesheet" />
}

@section scripts
{
    @Scripts.Render("~/bundles/bootstraptablejs", "~/bundles/treegridjs", "~/bundles/jqueryexportjs")
    <script>
        var ctx = "/";
        var editFlag = "";
        var removeFlag = "";
        var resetPwdFlag = "";
    </script>
    <script src="@Url.Content("~/Content/static/ruoyi/system/user/user.js")"></script>
    <script src="@Url.Content("~/Content/static/ajax/libs/jquery-layout/jquery.layout-latest.js")"></script>
    <script src="@Url.Content("~/Content/static/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js")"></script>
}


<body class="white-bg">
    <div class="ui-layout-west">
        <div class="main-content">
            <div class="box box-main">
                <div class="box-header">
                    <div class="box-title">
                        <i class="fa icon-grid"></i> 组织机构
                    </div>
                    <div class="box-tools pull-right">
                        <a type="button" class="btn btn-box-tool menuItem" href="#" onclick="dept()" title="管理机构"><i class="fa fa-edit"></i></a>
                        <button type="button" class="btn btn-box-tool" id="btnExpand" title="展开" style="display:none;"><i class="fa fa-chevron-up"></i></button>
                        <button type="button" class="btn btn-box-tool" id="btnCollapse" title="折叠"><i class="fa fa-chevron-down"></i></button>
                        <button type="button" class="btn btn-box-tool" id="btnRefresh" title="刷新机构"><i class="fa fa-refresh"></i></button>
                    </div>
                </div>
                <div class="ui-layout-content">
                    <div id="tree" class="ztree"></div>
                </div>
            </div>
        </div>
    </div>

    <div class="wrapper wrapper-content ui-layout-center">
        <div class="btn-group hidden-xs" id="toolbar" role="group">
            <button class="btn btn-outline btn-default" onclick="javascript:add()">
                <i class="fa fa-plus"></i> 新增
            </button>
            <button class="btn btn-outline btn-default" onclick="javascript:batchRemove()">
                <i class="fa fa-trash-o"></i> 删除
            </button>
        </div>
        <input type="hidden" id="deptId">
        <input type="hidden" id="parentId">
        <table class="bootstrap-table" data-mobile-responsive="true"
               data-sort-name="create_time" data-sort-order="desc"></table>
    </div>
</body>